
const {ccclass, property} = cc._decorator;
import supMount from "../../../sup/supMount";
@ccclass
export default class cJYMTGameTabSettingMount extends supMount {
    @property({type:cc.Slider,tooltip:"音效"})
    effect:cc.Slider = null;
    @property({type:cc.Slider,tooltip:"音乐"})
    music:cc.Slider = null;
    @property({type:cc.Node,tooltip:"音效进度条"})
    effectbor:cc.Node = null;
    @property({type:cc.Node,tooltip:"音乐进度条"})
    musicbor:cc.Node = null;

    //音效
    onEffectChange(){
        this.effectbor.scaleX = this.effect.progress;
    }

    //音量
    onMusicChange(){
        this.musicbor.scaleX = this.music.progress;
    }

    //关闭
    onClose(){
        this.closeCript(null);
    }
}
